package com.have.blog.web.dto;

import com.have.blog.base.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class BlogDto extends BaseDto<BlogDto> {
    @ApiModelProperty(value = "博客标题")
    private String title;
    @ApiModelProperty(value = "博客简介")
    private String summary;
    @ApiModelProperty(value = "标签uid")
    private String tagUid;
    @ApiModelProperty(value = "博客点击数")
    private Integer clickCount;
    @ApiModelProperty(value = "博客收藏数")
    private Integer collectCount;
    @ApiModelProperty(value = "标题图片uid")
    private Integer coverUid;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "是否原创（0:不是 1：是）")
    private String isOriginal;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "文章出处")
    private String articlesPart;

    @ApiModelProperty(value = "博客分类UID")
    private Integer blogCategoryUid;
    @ApiModelProperty(value = "推荐等级(0:正常)")
    private Integer level;
    @ApiModelProperty(value = "是否发布：0：否，1：是")
    private String isPublish;
    @ApiModelProperty(value = "是否开启评论(0:否 1:是)")
    private Integer openComment;
    @ApiModelProperty(value = "类型【0 博客， 1：推广】")
    private Integer type;
    @ApiModelProperty(value = "外链【如果是推广，那么将跳转到外链】")
    private String outsideLink;
    @ApiModelProperty(value = "投稿用户UID")
    private Integer userUid;
    @ApiModelProperty(value = "文章来源【0 后台添加，1 用户投稿】")
    private Integer articleSource;
    @ApiModelProperty(value = "是否开启评论(0:否 1:是)")
    private Integer startComment;
    @ApiModelProperty(value = "博客内容")

    private String content;
    private String photoUrl;
    private BlogCategoryDto blogCategory;
    private String blogCategoryName;
}
